package com.you.netty.pipeline;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;

public class ProcessHandler1 extends ChannelInboundHandlerAdapter {

    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        System.out.println("-------ProcessHandler1接受到消息----" + msg);
        //调用fireChannelActive，把msg消息往下传递，否则ProcessHandler2接受不到msg
        ctx.fireChannelRead(msg);
    }
}
